Sub AttachMessage(iwp As ISubclass, ByVal hwnd As Long, _
ByVal iMsg As Long)
Attribute AttachMessage.VB_Description = "Start subclassing for a particular message."
MSubclass.AttachMessage iwp, hwnd, iMsg
End Sub
Sub DetachMessage(iwp As ISubclass, ByVal hwnd As Long, _
ByVal iMsg As Long)
Attribute DetachMessage.VB_Description = "Stop subclassing for a particular message."
MSubclass.DetachMessage iwp, hwnd, iMsg
End Sub
Public Property Get CurrentMessage() As Long
Attribute CurrentMessage.VB_Description = "Returns the message currently being worked on. Only valid in the MsgResponse and WindowProc items of your implemented interface."
CurrentMessage = MSubclass.CurrentMessage
End Property
Public Function CallOldWindowProc( _
ByVal hwnd As Long, _
ByVal iMsg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long _
) As Long
Attribute CallOldWindowProc.VB_Description = "Calls the window procedure for this handle which was installed before you added the subclass."